package com.ajhlp.app.phoneDetailQuery.model;

import org.codehaus.jackson.annotate.JsonIgnore;

public class PhoneNumRuleJsonMetaDetail implements Comparable<PhoneNumRuleJsonMetaDetail> {
	
	private String text;
	private String type;
	private int index;
	@JsonIgnore
	private Boolean add_base;
	@JsonIgnore
	private int add_target;
	@JsonIgnore
	private Boolean sub_base;
	@JsonIgnore
	private int sub_target;
	@JsonIgnore
	private Boolean same_base;
	@JsonIgnore
	private int same_target;
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public Boolean getAdd_base() {
		return add_base;
	}
	public void setAdd_base(Boolean add_base) {
		this.add_base = add_base;
	}
	public int getAdd_target() {
		return add_target;
	}
	public void setAdd_target(int add_target) {
		this.add_target = add_target;
	}
	public Boolean getSub_base() {
		return sub_base;
	}
	public void setSub_base(Boolean sub_base) {
		this.sub_base = sub_base;
	}
	public int getSub_target() {
		return sub_target;
	}
	public void setSub_target(int sub_target) {
		this.sub_target = sub_target;
	}
	public Boolean getSame_base() {
		return same_base;
	}
	public void setSame_base(Boolean same_base) {
		this.same_base = same_base;
	}
	public int getSame_target() {
		return same_target;
	}
	public void setSame_target(int same_target) {
		this.same_target = same_target;
	}
	public int compareTo(PhoneNumRuleJsonMetaDetail o) {
		// TODO Auto-generated method stub
		if(o == null){
			return -1;
		}
		if(getIndex() == o.getIndex()){
			return 0;
		}else if(getIndex() > o.getIndex()){
			return 1;
		}else{
			return -1;
		}
	}
	
	
}
